const {
    PlanType
} = require('../../../model/plan/planType');

module.exports = async (req, res) => {
    // 获取post参数
    PlanType.create({
        name: req.fields.name,
        createTime: new Date().getTime(),
    })
        .then(result => console.log(result))
        .catch(err => console.log(err));
    res.send({ 'code': 0, "msg": "新增成功" });
}